# 环境
FROM registry.getech.cn/dip/java:8u40
# 作者信息
MAINTAINER zhanwei.wu "zhanwei.wu@getech.cn"
# 将本地文件tmp挂载到容器
VOLUME /tmp
# 拷贝jar
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone
ENV  LANG="C.UTF-8"
COPY data-development-web/lib/sapjco3.jar /app/sapjco3.jar
COPY data-development-web/lib/libsapjco3.so /app/libsapjco3.so
RUN chmod a+x -R  /app/libsapjco3.so

ADD data-development-web/target/data-development-web-micro-3.0.9-dev-SNAPSHOT-exec.jar /data-development-micro-3.0-SNAPSHOT-exec.jar
# 设置暴露的端口号
EXPOSE 18080
# 执行命令
ENTRYPOINT ["java","-jar","-Djava.library.path=/app","-Xbootclasspath/a:/app/sapjco3.jar","/data-development-micro-3.0-SNAPSHOT-exec.jar","--spring.config.location=config/application.yml,config/application-dev.yml"]
